//
//  YZNetworkManager+TDTrade.h
//  YZMicroStock
//
//  Created by Lv.Dongdong on 16/11/9.
//  Copyright © 2016年 cqjr. All rights reserved.
//

#import "YZNetworkManager.h"

@interface YZNetworkManager (TDTrade)

/**
 *  获取风控参数
 *
 *  @param success
 *  @param failure
 */
- (void)td_fecthTradeRiskWithsuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                             failure: (void (^)(NSError *error))failure;

/**
 *  获取当前市值
 *
 *  @param success
 *  @param failure
 */
- (void)fetchCurrentMarketWithSuccess:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                              failure: (void (^)(NSError *error))failure;

/**
 *  获取点卖列表  T+D
 *  @param success
 *  @param failure
 */
- (void)td_fetchSaleTradeListForDsuccess:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;


- (void)td_fetchSaleTradeListForDOfMemcachesuccess:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  获取结算列表  T+D
 *
 *  @param page     页码
 *  @param pageSize 页码大小
 *  @param schemeId 策略id
 *  @param success
 *  @param failure
 */
- (void)td_fetchTradeSettlementListForDWithPage:(NSInteger)page andPageSize:(NSInteger)pageSize  withID:(NSInteger )schemeId success:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  发起方案
 *
 *  @param dic  参数
 *  @param success
 *  @param failure 
 */
- (void)td_createSchemeWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  获取历史策略组
 *
 *  @param page     页码
 *  @param pageSize 页码大小
 *  @param success
 *  @param failure
 */
- (void)td_fetchTradeHistoryListForDWithPage:(NSInteger)page andPageSize:(NSInteger)pageSize  success:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  获取停牌策略
 *
 *  @param success
 *  @param failure
 */
- (void)td_fetchTradeStopListForsuccess:(void (^)(NSURLResponse *response,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  发起点买
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_createStrategyWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  追加点买金初始化
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_fetchAddMoneyInitWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  确认追加点买金
 *
 *  @param dic     参数
 *  @param success
 *  @param failure 
 */
- (void)td_confirmAddMoneyWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  申请结算
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_applySettlementWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  追加履约保证金
 *
 *  @param dic     参数
 *  @param success
 *  @param failure 
 */
- (void)td_addBondsMoneyWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  期限延期初始化
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_fetchRenewalInitWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  期限延期
 *
 *  @param dic     参数
 *  @param success
 *  @param failure 
 */
- (void)td_addSchemeRenewalInitWithParams:(NSDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  停牌股票放弃
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_StopGiveUpWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;


/**
 *  停牌股票买断
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
- (void)td_StopBuyOverWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

/**
 *  获取递延费信息
 *
 *  @param dic     参数
 *  @param success
 *  @param failure
 */
//- (void)td_GetDeferDataWithParams:(NSMutableDictionary *)dic success:(void (^)(NSURLSessionDataTask *task,id responseObject))success failure: (void (^)(NSError *error))failure;

- (void)td_GetDeferDataWithdic:(NSMutableDictionary *)dic Success:(void (^)(NSURLSessionDataTask *task,id responseObject))success
                              failure: (void (^)(NSError *error))failure;


@end
